package edu.cornell.cs4740.qa;

import java.util.ArrayList;
import java.util.List;

public class Document {
  private String docId;
  private String questionId;
  private int docRank;
  private double docScore;
  private List<String> sentencesStrings;
  private List<Sentence> sentences;
  private String docText;
  
  public Document(String docId, String questionId, int rank, double score) {
    this.docId = docId;
    this.questionId = questionId;
    docRank = rank;
    docScore = score;
    sentences = new ArrayList<Sentence>();
    sentencesStrings = new ArrayList<String>();
  }
  
  public void addSentence(Sentence sentence) {
    sentences.add(sentence);
  }
  
  public List<Sentence> getSentences(){
	  return sentences;
  }
  
  public void addSentenceString(String sentence) {
    sentencesStrings.add(sentence);
  }
  
  public List<String> getSentencesStrings(){
    return sentencesStrings;
  }
  
  public String getDocId(){
	  return docId;
  }
  
  public void addDocText(String docText) {
    this.docText = docText;
  }
}
